{% if item.getType() is "note" %}
	{% set id = "note-" + str(item.id) %}
{% else %}
	{% set id = "bookmark-" + str(item.id) %}
{% end %}

{% set uEdit = "/edit/" + str(item.id) %}
{% set uDelete = "/delete/" + str(item.id) %}

<div class="item" id="{% raw id %}">
			<input type="hidden" name="itemid" value="{{item.id}}">
			<div class="item-title">
				{% if item.getType() is "bookmark" %}
						<i class="icon-globe icon-white"></i>&nbsp;
				{% else %}
						<i class="icon-file icon-white"></i>&nbsp;
				{% end %}
				<span class="item-title-text">{{ item.title }}</span>
				
				<div class="btn-group pull-right">
					<a class="btn btn-mini btn-inverse edit-btn" href="/edit/{{item.id}}">
						<i class="icon-edit icon-white"></i></a>
					</a>
					<a class="btn btn-mini btn-inverse delete-btn" href="/delete/{{item.id}}">
						<i class="icon-remove icon-white"></i></a>
					</a>
				</div>
			</div>
			
			{% if item.getType() is "bookmark" %}
			<div class="item-url">
				<a href="{% raw item.url %}" target="_blank" class="item-url-text">{{ item.url }}</a>
			</div>
			{% end %}
			
			<div class="item-content">
				<p class="item-content-text">{{ item.info }}</p>
			</div>
			<div class="item-tags">
				
				{% for t in item.taglist() %}
					{% set tUrl = "/t/" + str(t) %}
				    <a href="{% raw tUrl %}">
					<span class="label item-tag">{{ t }}</span>
				</a>
				{% end %}
				
			</div>
		</div>